package com.lfk.demo.Ability;

import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.utils.Color;

import com.lfk.demo.ResourceTable;
import com.lfk.justwetools.Component.VerText.VerTextView;

public class VerTextAbility extends Ability {

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        setPattern(ResourceTable.Pattern_base);
        setUIContent(ResourceTable.Layout_ability_ver_text);
        VerTextView verTextView = (VerTextView)findComponentById(ResourceTable.Id_vertextview);
        verTextView.setFontSize(40);
        verTextView.setText(getString(ResourceTable.String_poem));

        VerTextView verTextView1 = (VerTextView)findComponentById(ResourceTable.Id_vertextview1);
        verTextView1.setText(getString(ResourceTable.String_poem));
        verTextView1.setIsOpenUnderLine(true);
        verTextView1.setFontSize(40);
        verTextView1.setUnderLineColor(Color.RED.getValue());
        verTextView1.setUnderLineWidth(3);
        verTextView1.setUnderLineSpacing(10);

    }

}
